home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 November / CPNL0711.ISO / admin / secure / Tor - Privoxy - Vidalia.exe / Privoxy / user.action < prev   
Text File  |  2006-11-20  |  6KB  |  160 lines

  1. ######################################################################
  2. #  File        :  $Source: /cvsroot/ijbswa/current/user.action,v $
  3. #  $Id: user.action,v 1.7 2006/10/04 00:37:05 hal9 Exp $
  4. #
  5. #  Purpose     :  User-maintained actions file, see
  6. #                 http://www.privoxy.org/user-manual/actions-file.html
  7. #
  8. ######################################################################
  9.  
  10. # This is the place to add your personal exceptions and additions to
  11. # the general policies as defined in default.action. (Here they will be
  12. # safe from updates to default.action.) Later defined actions always
  13. # take precedence, so anything defined here should have the last word.
  14.  
  15. # See http://www.privoxy.org/user-manual/actions-file.html, or the 
  16. # comments in default.action, for an explanation of what an "action" is
  17. # and what each action does.
  18.  
  19. # The examples included here either use bogus sites, or have the actual
  20. # rules commented out (with the '#' character). Useful aliases are
  21. # included in the top section as a convenience.
  22.  
  23. #############################################################################
  24. # Aliases
  25. #############################################################################
  26. {{alias}}
  27. #############################################################################
  28. #
  29. # Aliases must be defined before they are used and are local to the
  30. # actions file that they are defined in, you can't use the ones from
  31. # default.action, unless you repeat them here:
  32.  
  33. # These aliases just save typing later, and the alias names should 
  34. # be self explanatory.
  35. #
  36. +crunch-all-cookies = +crunch-incoming-cookies +crunch-outgoing-cookies
  37. -crunch-all-cookies = -crunch-incoming-cookies -crunch-outgoing-cookies
  38.  allow-all-cookies  = -crunch-all-cookies -session-cookies-only -filter{content-cookies}
  39.  allow-popups       = -filter{all-popups} -kill-popups -filter{unsolicited-popups}
  40. +block-as-image     = +block +handle-as-image
  41. -block-as-image     = -block
  42.  
  43. # These aliases define combinations of actions that are useful for
  44. # certain types of sites:
  45. #
  46. fragile     = -block -crunch-all-cookies -filter -fast-redirects -hide-referer -kill-popups -prevent-compression
  47. shop        = -crunch-all-cookies allow-popups
  48.  
  49. # Your favourite blend of filters:
  50. #
  51. myfilters   = +filter{html-annoyances} +filter{js-annoyances} +filter{all-popups}\
  52.               +filter{webbugs} +filter{banners-by-size} +filter{fun}
  53.  
  54. # Allow ads for selected useful free sites:
  55. #
  56. allow-ads   = -block -filter{banners-by-size} -filter{banners-by-link}
  57. #... etc.  Customize to your heart's content.
  58.  
  59. ## end aliases ########################################################
  60. #######################################################################
  61.  
  62. # Begin examples: #####################################################
  63.  
  64. # Say you have accounts on some sites that you visit regularly, and you
  65. # don't want to have to log in manually each time. So you'd like to allow
  66. # persistent cookies for these sites. The allow-all-cookies alias defined
  67. # above does exactly that, i.e. it disables crunching of cookies in any
  68. # direction, and the processing of cookies to make them only temporary.
  69. #
  70. { allow-all-cookies }
  71. #.sourceforge.net
  72. #sunsolve.sun.com
  73. #slashdot.org
  74. #.yahoo.com
  75. #.msdn.microsoft.com
  76. #.redhat.com
  77.  
  78. # Say the site where you do your homebanking needs to open popup
  79. # windows, but you have chosen to kill popups uncoditionally by default.
  80. # This will allow it for your-example-bank.com:
  81. #
  82. { -filter{all-popups} -kill-popups }
  83. .banking.example.com
  84.  
  85. # Some hosts and some file types you may not want to filter for
  86. # various reasons:
  87. #
  88. { -filter }
  89.  
  90. # Technical documentation is likely to contain strings that might
  91. # erroneously get altered by the JavaScript-oriented filters:
  92. #
  93. #.tldp.org
  94. #/(.*/)?selfhtml/
  95.  
  96. # And this stupid host sends streaming video with a wrong MIME type,
  97. # so that Privoxy thinks it is getting HTML and starts filtering:
  98. #
  99. stupid-server.example.com/
  100.  
  101.  
  102. # Example of a simple "block" action. Say you've seen an ad on your
  103. # favourite page on example.com that you want to get rid of. You have
  104. # right-clicked the image, selected "copy image location" and pasted
  105. # the URL below while removing the leading http://, into a { +block }
  106. # section. Note that { +handle-as-image } need not be specified, since
  107. # all URLs ending in .gif will be tagged as images by the general rules
  108. # as set in default.action anyway:
  109. #
  110. { +block }
  111. www.example.com/nasty-ads/sponsor.gif
  112.  
  113. # The URLs of dynamically generated banners, especially from large banner
  114. # farms, often don't use the well-known image file name extensions, which
  115. # makes it impossible for Privoxy to guess the file type just by looking
  116. # at the URL. 
  117. # You can use the +block-as-image alias defined above for these cases.
  118. # Note that objects which match this rule but then turn out NOT to be an
  119. # image are typically rendered as a "broken image" icon by the browser.
  120. # Use cautiously.
  121. #
  122. { +block-as-image }
  123. #.doubleclick.net
  124. #/Realmedia/ads/
  125. #ar.atwola.com/
  126.  
  127. # Now you noticed that the default configuration breaks Forbes
  128. # Magazine, but you were too lazy to find out which action is the
  129. # culprit, and you were again too lazy to give feedback, so you just
  130. # used the fragile alias on the site, and -- whoa! -- it worked. The
  131. # 'fragile' aliases disables those actions that are most likely to break
  132. # a site. Also, good for testing purposes to see if it is Privoxy that
  133. # is causing the problem or not.
  134. { fragile }
  135. #.forbes.com
  136.  
  137. # Here are some sites we wish to support, and we will allow their ads
  138. # through.
  139. #
  140. { allow-ads }
  141. #.sourceforge.net
  142. #.slashdot.org
  143. #.osdn.net
  144.  
  145. # user.action is generally the best place to define exceptions and
  146. # additions to the default policies of default.action. Some actions are
  147. # safe to have their default policies set here though. So let's set a
  148. # default policy to have a 'blank' image as opposed to the checkerboard
  149. # pattern for ALL sites. '/' of course matches all URLs.
  150. # patterns:
  151. #
  152. { +set-image-blocker{blank} }
  153. #/
  154.  
  155. ## set vi:nowrap tw=72
  156.